CVE-2025-61912
python-ldap Vulnerable to Improper Encoding or Escaping of Output and Improper Null Termination
Description
python-ldap is a lightweight directory access protocol (LDAP) client API for Python. In versions prior to 3.4.5, ldap.dn.escape_dn_chars() escapes \x00 incorrectly by emitting a backslash followed by a literal NUL byte instead of the RFC-4514 hex form \00. Any application that uses this helper to construct DNs from untrusted input can be made to consistently fail before a request is sent to the LDAP server (e.g., AD), resulting in a client-side denial of service. Version 3.4.5 contains a patch for the issue.
INFO
Published Date :
Oct. 10, 2025, 10:15 p.m.
Last Modified :
Dec. 4, 2025, 5:57 p.m.
Remotely Exploit :
Yes !
Source :
[email protected]
CVSS Scores
| Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source |
|---|---|---|---|---|---|---|
| CVSS 3.1 | MEDIUM | [email protected] | ||||
| CVSS 4.0 | MEDIUM | [email protected] |
Solution
- Update python-ldap to version 3.4.5 or later.
- Ensure DNs are properly escaped before constructing.
Public PoC/Exploit Available at Github
CVE-2025-61912 has a 1 public
PoC/Exploit available at Github.
Go to the Public Exploits tab to see the list.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2025-61912.
| URL | Resource |
|---|---|
| https://github.com/python-ldap/python-ldap/commit/6ea80326a34ee6093219628d7690bced50c49a3f | Patch |
| https://github.com/python-ldap/python-ldap/releases/tag/python-ldap-3.4.5 | Release Notes |
| https://github.com/python-ldap/python-ldap/security/advisories/GHSA-p34h-wq7j-h5v6 | Exploit Third Party Advisory |
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2025-61912 is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2025-61912
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Contains information on all of the CVEs I found.
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2025-61912 vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2025-61912 vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
Initial Analysis by [email protected]
Dec. 04, 2025
Action Type Old Value New Value Added CVSS V3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L Added CPE Configuration OR *cpe:2.3:a:python-ldap:python-ldap:*:*:*:*:*:*:*:* versions up to (excluding) 3.4.5 Added Reference Type GitHub, Inc.: https://github.com/python-ldap/python-ldap/commit/6ea80326a34ee6093219628d7690bced50c49a3f Types: Patch Added Reference Type GitHub, Inc.: https://github.com/python-ldap/python-ldap/releases/tag/python-ldap-3.4.5 Types: Release Notes Added Reference Type GitHub, Inc.: https://github.com/python-ldap/python-ldap/security/advisories/GHSA-p34h-wq7j-h5v6 Types: Exploit, Third Party Advisory -
New CVE Received by [email protected]
Oct. 10, 2025
Action Type Old Value New Value Added Description python-ldap is a lightweight directory access protocol (LDAP) client API for Python. In versions prior to 3.4.5, ldap.dn.escape_dn_chars() escapes \x00 incorrectly by emitting a backslash followed by a literal NUL byte instead of the RFC-4514 hex form \00. Any application that uses this helper to construct DNs from untrusted input can be made to consistently fail before a request is sent to the LDAP server (e.g., AD), resulting in a client-side denial of service. Version 3.4.5 contains a patch for the issue. Added CVSS V4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:P/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X Added CWE CWE-116 Added CWE CWE-170 Added Reference https://github.com/python-ldap/python-ldap/commit/6ea80326a34ee6093219628d7690bced50c49a3f Added Reference https://github.com/python-ldap/python-ldap/releases/tag/python-ldap-3.4.5 Added Reference https://github.com/python-ldap/python-ldap/security/advisories/GHSA-p34h-wq7j-h5v6